import { customAlphabet } from "nanoid"
import { Character } from "./Character"
const nanoid = customAlphabet("1234567890abcdef", 8)

export interface SkillDataSet {
  name: string
  description: string
  func?: (target: Character) => any
}

export interface SkillData {
  id: string
  skillId: number
  cd: number
}

export class Skill {
  id: string
  cd = 0
  constructor(public skillId: number) {
    this.id = nanoid()
  }
}